package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.CkdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface CkdProductService extends BaseService<CkdProductBean> {

	CkdProductBean getCkdProductBeanById(String id) throws Exception;
	
	void removeCkdProductBeanById(String id) throws Exception;
	
	void removeCkdProductBeanByIds(String ids) throws Exception;
	
	CkdProductBean saveCkdProductBean(CkdProductBean crm) throws Exception;
	
	CkdProductBean updateCkdProductBean(CkdProductBean crm) throws Exception;
	
	Page<CkdProductBean>  findCkdProductBeanByCond(CkdProductBean bean,
			Page<CkdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveCkdProductBeanExt(String sql) throws Exception;

	String findCkdProductBeanExtCreate(String tableName) throws Exception;

	String findCkdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findCkdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasCkdProductBeanExtData(String tableName, String id)
			throws Exception;
}